package com.feigndemo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.feigndemo.api.FeignDemoService;
import com.feigndemo.pojo.FeignDemoVO;

@RestController
@RequestMapping("/feign")
public class FeignDemoServiceController implements FeignDemoService{

	@Override
	public FeignDemoVO helloFeign(String id) {
		FeignDemoVO vo = new FeignDemoVO();
		vo.setId(id);
		vo.setName("hello feign");
		return vo;
	}
	
}
